package com.xur.springboot.service;

import com.xur.springboot.entity.User;
import com.xur.springboot.utils.ResultVO;
import org.springframework.stereotype.Service;

import java.util.List;

public interface UserService {
    public ResultVO login(String username, String password, int role);

    public int queryIdByUsername(String username, String password);

    public List<User> queryUserById(int id);

    //添加用户实现注册功能
    public int addUserInfo(User user);

    public List<User> queryUser();

    int updateUserStatus(Integer userId, Integer status);

    List<User> queryUsersByDynamicFields(List<String> fields, Integer targetId);

    List<User> queryUsersByIds(List<Integer> ids);
}
